﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using Prism.Commands;

namespace PrismMetroSample.Infrastructure.Models
{
    public class MenuModel
    {
        public string IconFont { get; set; }

        public string Title { get; set; }

        private DelegateCommand<MenuModel> _menuCommand;
        public DelegateCommand<MenuModel> MenuCommand => _menuCommand ?? (_menuCommand = new DelegateCommand<MenuModel>(ExecuteMenuCommand));

        void ExecuteMenuCommand(MenuModel menu)
        {
            MessageBox.Show(menu.Title);
        }

    }
}
